//
// Created by 86138 on 2025/5/17.
//

#ifndef QINGDAO_UNIVERSITY_LINKSTACK_H
#define QINGDAO_UNIVERSITY_LINKSTACK_H
#include "../01-intro/c1-1.h"

namespace sweetcookie3_1 {
    typedef int SElemType;
    typedef struct StackNode {
        SElemType Data;
        struct StackNode *Next;
    } StackNode, *LinkStack;

    void InitLinkStack(LinkStack &S);
    void DestroyLinkStack(LinkStack &S);
    Status Push(LinkStack &S, SElemType e);
    Status Pop(LinkStack &S, SElemType &e);
    bool StackEmpty(LinkStack S);
}
#endif //QINGDAO_UNIVERSITY_LINKSTACK_H
